import requests


class IhrmLogin(object):
    @classmethod
    def emp_login(cls,data_json):
        resp=requests.post(url='http://ihrm-test.itheima.net/api/sys/login',
                           json=data_json)
        return  resp
if __name__ == '__main__':
    data = {"mobile":"13800000002","password":"123456",}
    resp=    IhrmLogin.emp_login(data)
    print(resp.json())
